home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
amiga
/
convrtrs
/
cutitout.lha
/
cutitout.doc
< prev
next >
Wrap
Text File
|
1993-03-23
|
2KB
|
59 lines
CutItOut!, a large-bitmap utility
by K.Peeters, (C) 1992.
CutItOut! is a program to manipulate large bitmaps. These include bitmaps
that even DPaint can't handle (like 4000x4000). It will display a scaled
image of the picture in a window on the workbench screen. You can then
cut out a part of it, and save it to a file.
How to use it:
Start as usual. Of the 5 buttons at the bottom of the window, only the
first two actually do something in this version (haven't had time to
include the other functions). They do exactly as they say: the first
one loads a large bitmap, the second one saves a part of it to a separate
file.
So click LOAD, pick bitmap. This displays the picture on screen. Resize
as you like. Then mark an area (click once, move to other corner, click
again). Then SAVE.
Technical:
CutItOut makes use of IFF.library. I have included version 22.3. Don't use
older versions, since they contain a bug in the save routines which locks
up 68000 machines.
I use the BitMapScale() to resize the picture. The RKM manual isn't clear
about the source location (whether it has to be in CHIP-mem), but it works
with FAST-mem sources on my machine. Since the source can be quite large,
this is the only way to do it on my 512K CHIP machine. If someone knows
more about this routine, please email me.
Since I only needed this util for 1 bitplane images, I have not tested the
program with pictures with more than 2 planes (since my WB is 2 planes). In any
case, it will only display the first 2 planes. I don't recall if I made the
save routines use all the planes. Check it out.
The user-interface was made with GadToolsBox by Jan v.d. Baard. Thanks.
The source is included (C and GTB).
Enjoy,
Kasper Peeters
t16@nikhefh.nikhef.nl
kpeeters@phys.uva.nl
BTW. The program is PD of course. Please mail me if you like more features
or have included them yourself. There's no need to invent the wheel twice.